import java.io.File;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.JAXBException;

public class Main {

	public static void main(String[] args) {
		
		List<Match> listOfMatches = new LinkedList<Match>();
		
		
		Parser p = new Parser();
		listOfMatches = p.getMatches();
		
		 try {
	            XMLCreator.marshal(listOfMatches, new File("matches.xml"));
	        } catch (IOException e) {
	            e.printStackTrace();
	        } catch (JAXBException e) {
	            e.printStackTrace();
	        }

		

	}

}
